package com.sanctity.feign.clients;

import com.sanctity.feign.config.FeignDefaultConfig;
import com.sanctity.feign.vo.patient.PatientVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/***
 * @belongsProject spring-cloud
 * @description <患者服务API>
 * @author Sanct
 * @version 1.0.0
 * @create 2024/2/2 18:25
 **/

@FeignClient(value = "patientservice",configuration = FeignDefaultConfig.class)
public interface PatientClient {

    @GetMapping("/patient/{id}")
    PatientVo getPatById(@PathVariable("id") Long id);
}
